package com.example.spring.boot.rabbitmq.configuration;

import com.example.spring.boot.rabbitmq.constant.SimpleQueueConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

/**
 * <p>
 * SimpleQueueConfig
 * </p>
 *
 * @author weixin
 * @date 2023/3/28 19:38
 */
@Configurable
public class SimpleQueueConfig {

    @Bean
    public Queue simpleQueue() {
        return new Queue(SimpleQueueConstant.SIMPLE_WORK_QUEUE);
    }

}
